﻿#ifndef LOGIN_H
#define LOGIN_H
#include <tcp_socket.h>
#include <QDialog>
#include <QMessageBox>
namespace Ui {
class login;
}

class login : public QDialog
{
    Q_OBJECT

public:
    explicit login(QWidget *parent = 0);
    ~login();
    void setsocket(tcp_socket *socket);
    tcp_socket  *socket=NULL;
private slots:
    void on_login_P_clicked();
    void on_pushButton_clicked();
    void receive_data(QStringList data);
signals:
    void socket_senddata(QString id,QString type,QString data);
    void socket_setpassword(QString password);
    void set_id_password(QString id,QString password);
private:
    Ui::login *ui;
};

#endif // LOGIN_H
